class CreateFeeds < ActiveRecord::Migration
  def self.up
    create_table :feeds do |t|
      # order
      t.integer :order_id,
        :order_item_id
      # installatio
      t.integer :installation_id,
        :install_item_id
      # order_made
      t.integer :order_made_id,
        :order_made_item_id
      # enter
      t.integer :enter_item_id
      # others 
      t.integer :furniture_logistic_stat_order_item_id,
        :furniture_id,
        :furniture_logistic_stat_id
      
      # other
      t.string :type
      t.timestamps
    end
  end

  def self.down
    drop_table :feeds
  end
end
